package DataLayer;

/**
 *
 * @author Philipp
 */
public abstract class AbstractDb{

    private MySqlDb database;

    public AbstractDb(MySqlDb database) {
        setDatabase(database);
    }

    public AbstractDb() {
        setDatabase(new MySqlDb());
    }

    public MySqlDb getDatabase() {
        return database;
    }

    private void setDatabase(MySqlDb database) {
        this.database = database;
    }
}
